<div id="sprytextfield3">
<?php echo __('label').$form->input('Intervention.label', array('label' => false)); ?>
</div>
<div id="sprytextfield4">
<?php echo __('value').$form->input('Intervention.default_value', array('label' => false)); ?>
</div>
<?php echo $ajax->submit(__('add_intervention', true), array('url' => 'add', 'update'=>'interventions')); ?>
<?php echo $ajax->link(__('cancel', true), '/interventions/done',array('update'=>'intervention')); ?>

<script type="text/javascript">
	var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield3", "none", {validateOn:["blur", "change"]});
	var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield4", "real", {validateOn:["blur", "change"], minValue:0});
</script> 